package cafe.Controller;

import cafe.Main;
import hapax.Template;
import hapax.TemplateDataDictionary;
import hapax.TemplateDictionary;
import hapax.TemplateException;
import hapax.TemplateLoader;
import hapax.TemplateResourceLoader;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.util.log.Log;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author nnan
 */
public class IndexServletController extends ControllerInterface {

    private static final org.eclipse.jetty.util.log.Logger LOG = Log.getLogger(IndexServletController.class);

    @Override
    public String doAction(String action, HttpServletRequest request, HttpServletResponse response, String context) {
        switch (action) {
            case "additem":
                break;
            case "delete":
                break;
            case "getitem":
                break;
            default:
                LOG.info("Default action: Index");
                return index(request, response, context, "/View/index.xtm");
        }
        return "";

    }

  
}
